Skip to content
Snippets Groups Projects
Commit 7dcdb498 authored by Marcel Loose's avatar Marcel Loose :sunglasses: Committed by Corné Lukken
Browse files

Integrate setuptools_scm

parent b4bb5a91
Branches
No related tags found
No related merge requests found
......@@ -6,6 +6,9 @@ dist/*
coverage.xml
htmlcov/*
# Setuptools SCM
my_awesome_app/_version.py
# IDE configuration
.vscode
.idea
include LICENSE
include README.md
include VERSION
recursive-include docs *
recursive-exclude tests *
......@@ -9,12 +9,12 @@ If you find some missing functionality with regards to CI/CD, testing, linting o
## Installation
```
pip install map
pip install .
```
## Usage
```
from map import cool_module
from my_awesome_app import cool_module
cool_module.greeter() # prints "Hello World"
```
......
0.1
\ No newline at end of file
File moved
File moved
[build-system]
requires = ['setuptools>=42', 'wheel']
build-backend = 'setuptools.build_meta'
requires = [
"setuptools>=45",
"setuptools_scm[toml]>=6.2",
"wheel"
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "my_awesome_app/_version.py"
[tool.pylint]
ignore = "_version.py"
[metadata]
name = my-awesome-app
version = file: VERSION
description = An example package for CI/CD working group
long_description = file: README.md
long_description_content_type = text/markdown
......
"""Testing of the Cool Module"""
from unittest import TestCase
from map.cool_module import greeter
from my_awesome_app.cool_module import greeter
class TestCoolModule(TestCase):
......
......@@ -34,8 +34,8 @@ commands =
black: {envpython} -m black --version
black: {envpython} -m black --check --diff .
pylint: {envpython} -m pylint --version
pylint: {envpython} -m pylint map tests
format: {envpython} -m autopep8 -v -aa --in-place --recursive map
pylint: {envpython} -m pylint my_awesome_app tests
format: {envpython} -m autopep8 -v -aa --in-place --recursive my_awesome_app
format: {envpython} -m autopep8 -v -aa --in-place --recursive tests
format: {envpython} -m black -v .
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment