File tree Expand file tree Collapse file tree 7 files changed +17
-12
lines changed
Expand file tree Collapse file tree 7 files changed +17
-12
lines changed Original file line number Diff line number Diff line change 1- name : Publish Python Package
1+ name : build
22
33on :
44 release :
Original file line number Diff line number Diff line change 1- name : Tests
1+ name : tests
22
33on :
44 push :
Original file line number Diff line number Diff line change 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/ )
Original file line number Diff line number Diff line change @@ -14,3 +14,11 @@ markers = [
1414 " slow: slow tests" ,
1515]
1616testpaths = " tests/"
17+
18+ [tool .coverage .report ]
19+ exclude_lines = [
20+ " raise NotImplementedError" ,
21+ " raise NotImplementedError()" ,
22+ " pragma: nocover" ,
23+ " if __name__ == .__main__.:" ,
24+ ]
Original file line number Diff line number Diff line change 11from .pyrootutils import find_root , set_root , setup_root
22
33__all__ = ["find_root" , "set_root" , "setup_root" ]
4-
5- __version__ = "1.0.3"
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11from setuptools import find_packages , setup
22
3- from pyrootutils import __version__
4-
53with open ("README.md" ) as f :
64 long_description = f .read ()
75
86
97setup (
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 ,
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)
You can’t perform that action at this time.
0 commit comments