File tree Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 5
5
6
6
__all__ = ("__version__" ,)
7
7
8
- from pkg_resources import DistributionNotFound , get_distribution
9
-
10
8
try :
11
- __version__ = get_distribution ( __name__ ). version
12
- except DistributionNotFound :
9
+ from . _version import __version__
10
+ except ImportError :
13
11
# package is not installed
14
- __version__ = "0.0.0 "
12
+ __version__ = ""
Original file line number Diff line number Diff line change 1
1
[build-system ]
2
2
requires = [
3
- " setuptools>=42 " ,
3
+ " setuptools>=64 " ,
4
4
" wheel" ,
5
- " setuptools_scm"
5
+ " setuptools_scm>=8 "
6
6
]
7
- build-backend = ' setuptools.build_meta'
7
+ build-backend = " setuptools.build_meta"
8
8
9
- [tools .setuptools_scm ]
9
+ [tool .setuptools_scm ]
10
+ version_file = " astropylibrarian/_version.py"
10
11
11
12
[tool .black ]
12
13
line-length = 79
13
- target-version = [" py37 " ]
14
+ target-version = [" py311 " ]
14
15
exclude = '''
15
16
/(
16
17
\.eggs
@@ -28,4 +29,4 @@ exclude = '''
28
29
include_trailing_comma = true
29
30
multi_line_output = 3
30
31
known_first_party = [" astropylibrarian" , " tests" ]
31
- skip = [" docs/conf.py" ]
32
+ skip = [" docs/conf.py" ]
You can’t perform that action at this time.
0 commit comments