Skip to content

Commit

Permalink
Fix setup.py (#206)
Browse files Browse the repository at this point in the history
Co-authored-by: Yannis Liapis <yanni@yanniss-mbp.lan>
  • Loading branch information
yliapis and Yannis Liapis authored Oct 14, 2022
1 parent c2a05f7 commit b216889
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,14 @@
import re

from setuptools import find_packages, setup

with open('requirements.txt') as f:
with open("requirements.txt") as f:
required = f.read().splitlines()


PACKAGE_NAME = "staketaxcsv"
SOURCE_DIRECTORY = "src/staketaxcsv"

source_packages = find_packages()
source_package_regex = re.compile(f"^{SOURCE_DIRECTORY}")
project_packages = [source_package_regex.sub(PACKAGE_NAME, name) for name in source_packages]


setup(
name=PACKAGE_NAME,
version='0.0.1',
name="staketaxcsv",
version="0.0.1",
install_requires=required,
package_dir={PACKAGE_NAME: SOURCE_DIRECTORY},
packages=project_packages,
package_dir={"": "src"},
packages=find_packages(where="src"),
include_package_data=True,
)

0 comments on commit b216889

Please sign in to comment.