Skip to content

Commit cdaac04

Browse files
committed
add new req txt format to template, update readme
1 parent 5ba690c commit cdaac04

File tree

6 files changed

+23
-36
lines changed

6 files changed

+23
-36
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ source venv/bin/activate
6363
# Freeze your dependencies to allow reproducible installs between colleagues
6464
# and install the default project dependencies.
6565
pip install pip-tools
66-
pip-compile src/requirements.txt -o src/requirements.lock
67-
pip install -r src/requirements.lock
66+
pip-compile --resolver=backtracking
67+
pip install -r requirements.txt
6868
```
6969
You can now download and synthesize datasets!
7070
```bash

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pasteur"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
authors = [
55
{ name="Kapenekakis Antheas", email="[email protected]" },
66
]
@@ -49,10 +49,10 @@ cls = [
4949
docs = [
5050
"docutils",
5151
"sphinx~=6.0",
52-
"sphinx-book-theme",
52+
"sphinx-book-theme~=1.0.1",
5353
"nbsphinx",
5454
"recommonmark",
55-
"sphinx-autodoc-typehints",
55+
"sphinx-autodoc-typehints~=1.23.2",
5656
"sphinx_copybutton",
5757
"Jinja2",
5858
"sphinx-autobuild",
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import pasteur
22

33
# Inject pasteur version
4-
with open('src/requirements.txt', "r") as f:
4+
with open("requirements.in", "r") as f:
55
reqs = f.read()
66

7-
reqs = reqs.replace("pasteur[opt,test,docs]", f"pasteur[opt,test,docs]~={pasteur.version}")
7+
reqs = reqs.replace("pasteur[opt,test]", f"pasteur[opt,test]~={pasteur.version}")
88

9-
with open('src/requirements.txt', "w") as f:
10-
f.write(reqs)
9+
with open("requirements.in", "w") as f:
10+
f.write(reqs)

src/pasteur/templates/project/{{ cookiecutter.repo_name }}/pyproject.toml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
[project]
2+
name = "{{ cookiecutter.python_package }}"
3+
version = "0.1"
4+
5+
[project.entry-points."console_scripts"]
6+
{{ cookiecutter.repo_name }} = "{{ cookiecutter.python_package }}.__main__:main"
7+
8+
[tool.setuptools.packages.find]
9+
where = ["src"] # list of folders that contain the packages (["."] by default)
10+
exclude = ["test"]
11+
112
[tool.kedro]
213
package_name = "{{ cookiecutter.python_package }}"
314
project_name = "{{ cookiecutter.project_name }}"
@@ -14,4 +25,4 @@ addopts = """
1425
[tool.coverage.report]
1526
fail_under = 0
1627
show_missing = true
17-
exclude_lines = ["pragma: no cover", "raise NotImplementedError"]
28+
exclude_lines = ["pragma: no cover", "raise NotImplementedError"]
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# You can find Pasteur's recommended extensions in
22
# https://github.com/pasteur-dev/pasteur/blob/master/pyproject.toml
33
# as a reference for your own config file.
4+
-e file:.
45
kedro~={{ cookiecutter.kedro_version }}
5-
pasteur[opt,test,docs]
6+
pasteur[opt,test]

src/pasteur/templates/project/{{ cookiecutter.repo_name }}/src/setup.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)