File tree 2 files changed +11
-6
lines changed
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change
1
+ include requirements.txt
Original file line number Diff line number Diff line change 1
1
2
2
import re
3
-
3
+ from codecs import open
4
+ from os import path
4
5
import setuptools
5
6
6
7
version = ''
7
8
with open ('githubapps/__init__.py' ) as f :
8
9
version = re .search (
9
10
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]' , f .read (), re .MULTILINE ).group (1 )
10
11
11
- requirements = []
12
- with open ('requirements.txt' , 'r' ) as f :
13
- requirements = f .read ().splitlines ()
12
+ root_dir = path .abspath (path .dirname (__file__ ))
13
+
14
+ def _requirements ():
15
+ return [name .rstrip () for name in open (path .join (root_dir , 'requirements.txt' )).readlines ()]
16
+
14
17
15
18
16
19
with open ('README.md' , 'r' ) as f :
21
24
version = version ,
22
25
license = 'MIT' ,
23
26
description = 'This is a wrapper for the Github Apps API.' ,
27
+ long_description = long_description ,
24
28
long_description_content_type = 'text/markdown' ,
25
29
url = 'https://github.com/RTa-technology/githubapps.py' ,
26
30
author = 'RTa-technology' ,
27
- packages = setuptools . find_packages () ,
28
- install_requires = requirements ,
31
+ packages = [ "githubapps" ] ,
32
+ install_requires = _requirements () ,
29
33
classifiers = [
30
34
'Programming Language :: Python :: 3.8' ,
31
35
'Programming Language :: Python :: 3.9' ,
You can’t perform that action at this time.
0 commit comments