Skip to content

Commit

Permalink
disallow comments in pip installs
Browse files Browse the repository at this point in the history
  • Loading branch information
emcf committed Jul 11, 2024
1 parent 1a59343 commit 58668ee
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
from setuptools import setup, find_packages

def read_requirements(file):
with open(file, encoding='utf-8') as f:
return [line.strip() for line in f if line.strip() and not line.startswith('#')]

setup(
name='thepipe_api',
version='1.0.2',
Expand All @@ -16,14 +20,14 @@
'Operating System :: OS Independent',
],
python_requires='>=3.10',
install_requires=open('requirements.txt').read().splitlines(),
install_requires=read_requirements('requirements.txt'),
include_package_data=True,
entry_points={
'console_scripts': [
'thepipe=thepipe.__init__:main',
],
},
extras_require = {
'local': open('local.txt').read().splitlines(),
extras_require={
'local': read_requirements('local.txt'),
}
)
)

0 comments on commit 58668ee

Please sign in to comment.