Skip to content

Commit

Permalink
Release v1.0.3 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleve committed Jun 8, 2022
1 parent 3de068e commit a74dcef
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish_package.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Python Package
name: build

on:
release:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests
name: tests

on:
push:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![Python](https://img.shields.io/badge/python-3.7+-blue.svg)](https://www.python.org/downloads/release/python-370/)
[![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)
[![Codecov](https://codecov.io/gh/ashleve/pyrootutils/branch/main/graph/badge.svg)](https://codecov.io/gh/ashleve/pyrootutils)
[![Build](https://github.com/ashleve/pyrootutils/actions/workflows/publish_package.yml/badge.svg)](https://github.com/ashleve/pyrootutils/actions/workflows/publish_package.yml)
[![Issues](https://img.shields.io/github/issues/ashleve/pyrootutils)](https://github.com/ashleve/pyrootutils/issues)
[![License](https://img.shields.io/github/license/ashleve/pyrootutils)](https://github.com/ashleve/pyrootutils/blob/main/LICENSE)
[![Release](https://img.shields.io/pypi/v/pyrootutils)](pypi.org/project/pyrootutils/1.0.0/)
Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@ markers = [
"slow: slow tests",
]
testpaths = "tests/"

[tool.coverage.report]
exclude_lines = [
"raise NotImplementedError",
"raise NotImplementedError()",
"pragma: nocover",
"if __name__ == .__main__.:",
]
2 changes: 0 additions & 2 deletions pyrootutils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from .pyrootutils import find_root, set_root, setup_root

__all__ = ["find_root", "set_root", "setup_root"]

__version__ = "1.0.3"
8 changes: 4 additions & 4 deletions pyrootutils/pyrootutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ def set_root(
path: Union[str, Path],
project_root_env_var: bool = True,
dotenv: bool = True,
pythonpath: bool = True,
cwd: bool = True,
pythonpath: bool = False,
cwd: bool = False,
) -> None:
"""Set given path as a project root.
Expand Down Expand Up @@ -126,8 +126,8 @@ def setup_root(
),
project_root_env_var: bool = True,
dotenv: bool = True,
pythonpath: bool = True,
cwd: bool = True,
pythonpath: bool = False,
cwd: bool = False,
) -> Path:
"""Combines `get_root()` and `set_root()` into one method.
Expand Down
6 changes: 2 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
from setuptools import find_packages, setup

from pyrootutils import __version__

with open("README.md") as f:
long_description = f.read()


setup(
name="pyrootutils",
version=__version__,
version="1.0.3",
license="MIT",
description="Simple package for easy project root setup",
long_description=long_description,
Expand All @@ -19,6 +17,6 @@
packages=find_packages(),
python_requires=">=3.7.0",
include_package_data=True,
install_requires=["python-dotenv"],
install_requires=["python-dotenv>=0.20.0"],
tests_require=["pytest"],
)

0 comments on commit a74dcef

Please sign in to comment.