IffGit has a new shared runner for building Docker images in GitLab CI. Visit https://iffgit.fz-juelich.de/examples/ci-docker-in-docker for more details.

Commit ec095639 authored by Ingo Meyer's avatar Ingo Meyer
Browse files

Remove `requirements.txt` to avoid confusion

By convention, `requirements.txt` is used to describe concrete Python
environments, but in this project the file was used to describe package
dependencies. Thus, remove `requirements.txt` and declare dependencies
in the `setup.py` script directly.
parent 6928f538
......@@ -17,17 +17,6 @@ def get_version_from_pyfile(version_file="docutils_extended/_version.py"):
return file_globals["__version__"]
def get_install_requires_from_requirements(requirements_filename="requirements.txt"):
try:
with codecs.open(requirements_filename, "r", "utf-8") as requirements_file:
requirements = requirements_file.readlines()
except OSError:
import logging
logging.warning("Could not read the requirements file.")
return requirements
def get_long_description_from_readme(readme_filename="README.md"):
rst_filename = "{}.rst".format(os.path.splitext(os.path.basename(readme_filename))[0])
created_tmp_rst = False
......@@ -50,14 +39,13 @@ def get_long_description_from_readme(readme_filename="README.md"):
version = get_version_from_pyfile()
long_description = get_long_description_from_readme()
install_requires = get_install_requires_from_requirements()
setup(
name="docutils-extended",
version=version,
packages=find_packages(),
python_requires=">=2.7",
install_requires=install_requires,
install_requires=["docutils", "jinja2", "pillow", "pygments", "requests"],
entry_points={
"console_scripts": [
"rst2latex-extended = docutils_extended:rst2latex_extended_main",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment