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

Update of how requirements are found in setup.py #95

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[metadata]
description-file = README.md
description_file = README.md

12 changes: 5 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
from setuptools import setup, find_packages
import sys

with open("requirements/prod.txt") as requirements_file:
require = requirements_file.read()
requirements = require.split()

import codecs
import os.path
import codecs
import sys


def read(rel_path):
Expand All @@ -24,6 +19,9 @@ def get_from_init(rel_path, field):
raise RuntimeError("Unable to find " + field + " string.")


require = read(os.path.join("requirements", "prod.txt"))
requirements = require.split()

initfile = "libpyvinyl/__init__.py"
version = get_from_init(initfile, "__version__")
setup(
Expand Down
Loading