Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deploy #19

Merged
merged 19 commits into from
Feb 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from pathlib import Path



def get_package_description():
"""Returns a description of this package from the markdown files."""
_readme = Path("README.md")
Expand All @@ -20,27 +19,30 @@ def get_package_description():
history = "No history yet."
return f"{readme}\n\n{history}"

try:
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
except FileNotFoundError as e:
print(f"could not read README.md: {e}")
long_description = get_package_description()


def get_scripts_from_bin():
"""Get all local scripts from bin so they are included in the package."""
return glob.glob("bin/*")



def get_requirements():
"""Returns all requirements for this package."""
with open("requirements.txt") as f:
requirements = f.readlines()
return requirements


try:
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
except FileNotFoundError as e:
print(f"could not read README.md: {e}")
long_description = get_package_description()

requirements = get_requirements()
scripts = get_scripts_from_bin()


setuptools.setup(
name="confectionary",
author="Peter Szemraj, Jonathan Lehner",
Expand All @@ -52,7 +54,7 @@ def get_requirements():
# packages=setuptools.find_packages(),
package_dir={"": "confectionary"},
packages=setuptools.find_packages(where="confectionary"),
install_requires=get_requirements(),
install_requires=requirements,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
Expand All @@ -61,7 +63,7 @@ def get_requirements():
"Natural Language :: English",
"Topic :: Text Processing",
],
scripts=get_scripts_from_bin(),
scripts=scripts,
python_requires=">=3.7",
setuptools_git_versioning={
"enabled": True,
Expand Down