Skip to content

Commit a74dcef

Browse files
author
ashleve
authored
Release v1.0.3 (#7)
1 parent 3de068e commit a74dcef

File tree

7 files changed

+17
-12
lines changed

7 files changed

+17
-12
lines changed

.github/workflows/publish_package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish Python Package
1+
name: build
22

33
on:
44
release:

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Tests
1+
name: tests
22

33
on:
44
push:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![Python](https://img.shields.io/badge/python-3.7+-blue.svg)](https://www.python.org/downloads/release/python-370/)
44
[![Tests](https://github.com/ashleve/pyrootutils/actions/workflows/test.yml/badge.svg?branch=main&event=push)](https://github.com/ashleve/pyrootutils/actions/workflows/test.yml)
55
[![Codecov](https://codecov.io/gh/ashleve/pyrootutils/branch/main/graph/badge.svg)](https://codecov.io/gh/ashleve/pyrootutils)
6+
[![Build](https://github.com/ashleve/pyrootutils/actions/workflows/publish_package.yml/badge.svg)](https://github.com/ashleve/pyrootutils/actions/workflows/publish_package.yml)
67
[![Issues](https://img.shields.io/github/issues/ashleve/pyrootutils)](https://github.com/ashleve/pyrootutils/issues)
78
[![License](https://img.shields.io/github/license/ashleve/pyrootutils)](https://github.com/ashleve/pyrootutils/blob/main/LICENSE)
89
[![Release](https://img.shields.io/pypi/v/pyrootutils)](pypi.org/project/pyrootutils/1.0.0/)

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,11 @@ markers = [
1414
"slow: slow tests",
1515
]
1616
testpaths = "tests/"
17+
18+
[tool.coverage.report]
19+
exclude_lines = [
20+
"raise NotImplementedError",
21+
"raise NotImplementedError()",
22+
"pragma: nocover",
23+
"if __name__ == .__main__.:",
24+
]

pyrootutils/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
from .pyrootutils import find_root, set_root, setup_root
22

33
__all__ = ["find_root", "set_root", "setup_root"]
4-
5-
__version__ = "1.0.3"

pyrootutils/pyrootutils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ def set_root(
7979
path: Union[str, Path],
8080
project_root_env_var: bool = True,
8181
dotenv: bool = True,
82-
pythonpath: bool = True,
83-
cwd: bool = True,
82+
pythonpath: bool = False,
83+
cwd: bool = False,
8484
) -> None:
8585
"""Set given path as a project root.
8686
@@ -126,8 +126,8 @@ def setup_root(
126126
),
127127
project_root_env_var: bool = True,
128128
dotenv: bool = True,
129-
pythonpath: bool = True,
130-
cwd: bool = True,
129+
pythonpath: bool = False,
130+
cwd: bool = False,
131131
) -> Path:
132132
"""Combines `get_root()` and `set_root()` into one method.
133133

setup.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
from setuptools import find_packages, setup
22

3-
from pyrootutils import __version__
4-
53
with open("README.md") as f:
64
long_description = f.read()
75

86

97
setup(
108
name="pyrootutils",
11-
version=__version__,
9+
version="1.0.3",
1210
license="MIT",
1311
description="Simple package for easy project root setup",
1412
long_description=long_description,
@@ -19,6 +17,6 @@
1917
packages=find_packages(),
2018
python_requires=">=3.7.0",
2119
include_package_data=True,
22-
install_requires=["python-dotenv"],
20+
install_requires=["python-dotenv>=0.20.0"],
2321
tests_require=["pytest"],
2422
)

0 commit comments

Comments
 (0)