Skip to content

Commit fedbd8f

Browse files
authored
Add dependencies to setup.py. (#21)
1 parent 2845ebe commit fedbd8f

File tree

5 files changed

+28
-22
lines changed

5 files changed

+28
-22
lines changed

CHANGES.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ Changes
44
This is a record of all past pytask-latex releases and what went into them in reverse
55
chronological order. Releases follow `semantic versioning <https://semver.org/>`_ and
66
all releases are available on `Anaconda.org
7-
<https://anaconda.org/pytask/pytask-latex>`_.
7+
<https://anaconda.org/conda-forge/pytask-latex>`_.
88

99

10-
0.0.12 - 2021-xx-xx
10+
0.0.12 - 2021-03-05
1111
-------------------
1212

1313
- :gh:`19` fixes some post-release issues.
14+
- :gh:`21` adds dependencies to ``setup.py`` and install via ``conda-forge``.
1415

1516

1617
0.0.11 - 2021-02-25

MANIFEST.in

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
include LICENSE
2-
include versioneer.py
3-
include src/pytask_latex/_version.py
1+
prune .conda
2+
prune tests
43

54
exclude *.rst
65
exclude *.yml
76
exclude *.yaml
87
exclude tox.ini
98

10-
prune .conda
11-
prune tests
9+
include README.rst
10+
include LICENSE
11+
include versioneer.py
12+
include src/pytask_latex/_version.py

README.rst

+9-9
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,18 @@
66
:alt: PyPI - Python Version
77
:target: https://pypi.org/project/pytask-latex
88

9-
.. image:: https://anaconda.org/pytask/pytask-latex/badges/version.svg
10-
:target: https://anaconda.org/pytask/pytask-latex
9+
.. image:: https://img.shields.io/conda/vn/conda-forge/pytask-latex.svg
10+
:target: https://anaconda.org/conda-forge/pytask-latex
1111

12-
.. image:: https://anaconda.org/pytask/pytask-latex/badges/platforms.svg
13-
:target: https://anaconda.org/pytask/pytask-latex
12+
.. image:: https://img.shields.io/conda/pn/conda-forge/pytask-latex.svg
13+
:target: https://anaconda.org/conda-forge/pytask-latex
1414

1515
.. image:: https://img.shields.io/pypi/l/pytask-latex
1616
:alt: PyPI - License
17+
:target: https://pypi.org/project/pytask-latex
1718

18-
.. image:: https://github.com/pytask-dev/pytask-latex/workflows/Continuous%20Integration%20Workflow/badge.svg?branch=main
19-
:target: https://github.com/pytask-dev/pytask-latex/actions?query=branch%3Amain
19+
.. image:: https://img.shields.io/github/workflow/status/pytask-dev/pytask-latex/Continuous%20Integration%20Workflow/main
20+
:target: https://github.com/pytask-dev/pytask-latex/actions?query=branch%3Amain
2021

2122
.. image:: https://codecov.io/gh/pytask-dev/pytask-latex/branch/main/graph/badge.svg
2223
:target: https://codecov.io/gh/pytask-dev/pytask-latex
@@ -44,16 +45,15 @@ Installation
4445
------------
4546

4647
pytask-latex is available on `PyPI <https://pypi.org/project/pytask-latex>`_ and
47-
`Anaconda.org <https://anaconda.org/pytask/pytask-latex>`_. Install it with
48+
`Anaconda.org <https://anaconda.org/conda-forge/pytask-latex>`_. Install it with
4849

4950
.. code-block:: console
5051
5152
$ pip install pytask-latex
5253
5354
# or
5455
55-
$ conda config --add channels conda-forge --add channels pytask
56-
$ conda install pytask-latex
56+
$ conda install -c conda-forge pytask-latex
5757
5858
You also need to have ``latexmk`` installed which determines the necessary number of
5959
compilation steps (`here <https://tex.stackexchange.com/a/249243/194826>`_ is an

setup.py

+10-4
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@
1919
setup(
2020
name="pytask-latex",
2121
version=versioneer.get_version(),
22-
cmd_class=versioneer.get_cmdclass(),
22+
cmdclass=versioneer.get_cmdclass(),
2323
description="Compile LaTeX documents with pytask.",
2424
long_description=README,
2525
long_description_content_type="text/x-rst",
2626
author="Tobias Raabe",
2727
author_email="[email protected]",
28-
python_requires=">=3.6",
2928
url=PROJECT_URLS["Github"],
3029
project_urls=PROJECT_URLS,
3130
license="MIT",
@@ -39,9 +38,16 @@
3938
"Programming Language :: Python :: 3.8",
4039
"Programming Language :: Python :: 3.9",
4140
],
42-
platforms="any",
41+
install_requires=[
42+
"click",
43+
"latex-dependency-scanner",
44+
"pytask >= 0.0.11",
45+
],
46+
python_requires=">=3.6",
47+
entry_points={"pytask": ["pytask_latex = pytask_latex.plugin"]},
4348
packages=find_packages(where="src"),
4449
package_dir={"": "src"},
45-
entry_points={"pytask": ["pytask_latex = pytask_latex.plugin"]},
50+
platforms="any",
51+
include_package_data=True,
4652
zip_safe=False,
4753
)

src/pytask_latex/__init__.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
__version__ = "0.0.10"
2-
31
from ._version import get_versions
42

53
__version__ = get_versions()["version"]

0 commit comments

Comments
 (0)