Skip to content

Commit

Permalink
Merge pull request #127 from forslund/refactor/setup
Browse files Browse the repository at this point in the history
Refactor setup
  • Loading branch information
forslund authored Apr 17, 2021
2 parents a8be482 + c9a6d32 commit 818ea55
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ dist/
*.pyc
TEST-*.xml
.virtualenv
.envrc
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
README.md
LICENCE.md
requirements.txt
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
argparse==1.2.1
pyee==8.1.0
six>=1.10.0
15 changes: 11 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,21 @@

__author__ = 'seanfitz'

import os
from setuptools import setup

with open("README.md", "r") as fh:
long_description = fh.read()


def required(requirements_file):
"""Read requirements file and remove comments and empty lines."""
base_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(base_dir, requirements_file), 'r') as f:
requirements = f.read().splitlines()
return [pkg for pkg in requirements
if pkg.strip() and not pkg.startswith("#")]

setup(
name="adapt-parser",
version="0.4.0",
Expand All @@ -45,8 +55,5 @@
'Programming Language :: Python :: 3.9',
],

install_requires=[
"pyee==8.1.0",
"six>=1.10.0"
]
install_requires=required('requirements.txt')
)

0 comments on commit 818ea55

Please sign in to comment.