Trying to setup ci
This commit is contained in:
parent
83d207d12f
commit
5ca73487ac
|
@ -0,0 +1,24 @@
|
|||
name: Build and Release
|
||||
run-name: ${{ gitea.actor }}
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
run-terraform:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
- name: Setup python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.12'
|
||||
- name: Install pipenv
|
||||
run: pip install pipenv
|
||||
- name: Run pipenv install
|
||||
run: pipenv install --dev
|
||||
- name: Run Pytest
|
||||
run: pipenv run pytest
|
||||
|
1
Pipfile
1
Pipfile
|
@ -19,6 +19,7 @@ pytest = "*"
|
|||
pytest-cov = "*"
|
||||
bumpver = "*"
|
||||
twine = "*"
|
||||
build = "*"
|
||||
|
||||
[requires]
|
||||
python_version = "3.12"
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
[build-system]
|
||||
requires = ["setuptools", "wheel", "build", "twine","bumpver"]
|
||||
build-backend = "setuptools.build_meta:__legacy__"
|
||||
|
||||
[tool.bumpver]
|
||||
current_version = "0.1.0"
|
||||
version_pattern = "MAJOR.MINOR.PATCH"
|
||||
commit_message = "[skip ci] bump version {old_version} -> {new_version}"
|
||||
commit = true
|
||||
tag = true
|
||||
push = true
|
||||
|
||||
[tool.bumpver.file_patterns]
|
||||
"pyproject.toml" = [
|
||||
'current_version = "{version}"',
|
||||
]
|
||||
"setup.py" = [
|
||||
'{version}',
|
||||
]
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
-i https://pypi.org/simple
|
||||
annotated-types==0.6.0 ; python_version >= '3.8'
|
||||
certifi==2024.2.2 ; python_version >= '3.6'
|
||||
charset-normalizer==3.3.2 ; python_full_version >= '3.7.0'
|
||||
idna==3.7 ; python_version >= '3.5'
|
||||
loguru==0.7.2
|
||||
oauthlib==3.2.2 ; python_version >= '3.6'
|
||||
pydantic==2.7.1
|
||||
pydantic-core==2.18.2 ; python_version >= '3.8'
|
||||
requests==2.31.0
|
||||
requests-oauthlib==2.0.0
|
||||
typing-extensions==4.11.0 ; python_version >= '3.8'
|
||||
urllib3==2.2.1 ; python_version >= '3.8'
|
16
setup.py
16
setup.py
|
@ -4,20 +4,18 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|||
long_description = fh.read()
|
||||
|
||||
setup(
|
||||
name='pyyday-flows',
|
||||
version='2023.1092',
|
||||
author='Onboarding',
|
||||
author_email='jfmo@nuuday.dk',
|
||||
description='Classes and helpers to aid in developing onboarding flows',
|
||||
name='pymastodon',
|
||||
version='0.1.0',
|
||||
author='Jesper Fussing Mørk',
|
||||
author_email='jfmo@moerks.dk',
|
||||
description='Mastodon library for easily creating Mastodon clients',
|
||||
long_description=long_description,
|
||||
long_description_content_type="text/markdown",
|
||||
url='https://github.com/nuuday/pyyday-flows',
|
||||
url='https://gitea.moerks.dk/jfm/pymastodon',
|
||||
project_urls={
|
||||
"Bug Tracker": "https://github.com/nuuday/pyyday-flows/issues",
|
||||
"Bug Tracker": "https://gitea.moerks.dk/jfm/pymastodon/issues",
|
||||
},
|
||||
license='MIT',
|
||||
package_dir={"": "src"},
|
||||
packages=find_packages(where="src"),
|
||||
# packages=["pyyday"],
|
||||
install_requires=['pydantic', 'pyyday'],
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue