Skip to content

Commit

Permalink
Add cfg file and update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
clobrano committed Jul 27, 2024
1 parent 0d0bba0 commit 52c1512
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 49 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Lestdo CI/CD
on:
push:
branches:
- release
- main
- tags
pull_request:
Expand Down Expand Up @@ -50,16 +51,17 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install 'build[virtualenv]'
- name: Build package
run: |
python setup.py sdist bdist_wheel
python -m build
- name: Publish package to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m pip install --upgrade twine
twine upload dist/*
python -m twine upload dist/*
52 changes: 51 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,52 @@
[metadata]
description-file = README.rst
name = letsdo
description = Time tracker for Command Line
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/clobrano/letsdo
author = Carlo Lobrano
author_email = [email protected]
license = GPL3
classifiers =
Development Status :: 5 - Production/Stable
Topic :: Utilities
keywords = productivity, GTD, time tracker

[options]
package_dir =
= src
packages = find:
install_requires =
docopt
PyYaml
terminaltables
parsedatetime
raffaello
include_package_data = True
py_modules =
app
cli
configuration
handlers
log
tasks
timetoolkit

[options.extras_require]
dev =
pytest>=7.0
twine>=4.0.2

[options.packages.find]
where = src

[options.entry_points]
console_scripts =
lets=cli:main

[tool:pytest]
addopts = -v

[tool.setuptools_scm]
write_to = src/letsdo/_version.py

48 changes: 2 additions & 46 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,51 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Setuptool configuration for letsdo
"""
from setuptools import setup, find_packages

__version__ = "0.7.3"
from setuptools import setup

with open("README.md", "r", encoding="UTF-8") as f:
long_description = f.read()
setup()

setup(
name="letsdo",
version=__version__,
description="Time tracker for Command Line",
package_dir={"": "src"},
packages=find_packages("src"),
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/clobrano/letsdo",
author="Carlo Lobrano",
author_email="[email protected]",
license="GPL3",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Topic :: Utilities",
],
install_requires=[
"docopt",
"PyYaml",
"terminaltables",
"parsedatetime",
"raffaello",
],
extras_require={
"dev": ["pytest>=7.0", "twine>=4.0.2"],
},
entry_points={"console_scripts": ["lets=cli:main"]},
include_package_data=True,
keywords=["productivity", "GTD", "time tracker"],
py_modules=[
"app",
"cli",
"configuration",
"handlers",
"log",
"tasks",
"timetoolkit",
],
)

0 comments on commit 52c1512

Please sign in to comment.