File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 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 11
22import re
3-
3+ from codecs import open
4+ from os import path
45import setuptools
56
67version = ''
78with open ('githubapps/__init__.py' ) as f :
89 version = re .search (
910 r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]' , f .read (), re .MULTILINE ).group (1 )
1011
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+
1417
1518
1619with open ('README.md' , 'r' ) as f :
2124 version = version ,
2225 license = 'MIT' ,
2326 description = 'This is a wrapper for the Github Apps API.' ,
27+ long_description = long_description ,
2428 long_description_content_type = 'text/markdown' ,
2529 url = 'https://github.com/RTa-technology/githubapps.py' ,
2630 author = 'RTa-technology' ,
27- packages = setuptools . find_packages () ,
28- install_requires = requirements ,
31+ packages = [ "githubapps" ] ,
32+ install_requires = _requirements () ,
2933 classifiers = [
3034 'Programming Language :: Python :: 3.8' ,
3135 'Programming Language :: Python :: 3.9' ,
You can’t perform that action at this time.
0 commit comments