Skip to content

Commit c954cf2

Browse files
committed
add; PyPI
1 parent fe15b33 commit c954cf2

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include requirements.txt

setup.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11

22
import re
3-
3+
from codecs import open
4+
from os import path
45
import setuptools
56

67
version = ''
78
with 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

1619
with open('README.md', 'r') as f:
@@ -21,11 +24,12 @@
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',

0 commit comments

Comments
 (0)