Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
move to Github
Browse files Browse the repository at this point in the history
  • Loading branch information
djmoch committed Jun 16, 2024
1 parent fcb90b2 commit 999f09f
Show file tree
Hide file tree
Showing 10 changed files with 121 additions and 95 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# See LICENSE file for copyright and license information
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
36 changes: 36 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# See LICENSE file for copyright and license information
name: "CodeQL"

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
analyze:
name: Analyze (python)
runs-on: 'ubuntu-latest'
timeout-minutes: 360
permissions:
security-events: write
packages: read

strategy:
fail-fast: false

steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: python
build-mode: none

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:python"
36 changes: 36 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# See LICENSE file for copyright and license information
name: Python package

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
# - name: Lint with pylint, vulture
# run: |
# pylint nncli tests --disable=parse-error
# vulture nncli .vulture_whitelist.py
- name: Test with pytest
run: python -m pytest
- name: Build
run: |
flit build
make -C docs html man
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# See LICENSE file for copyright and license information
name: Python release

on:
push:
tags: [ "v*" ]

jobs:
release:

runs-on: ubuntu-latest
environment: release
permissions:
id-token: write

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Build package
run: |
python -m pip install build
python -m build
- name: Publish to Pypi
uses: pypa/gh-action-pypi-publish@release/v1
44 changes: 0 additions & 44 deletions .travis.yml

This file was deleted.

30 changes: 10 additions & 20 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,30 +64,20 @@ updating requirements files.
Discussion and Requests
-----------------------

All discussion takes place on the public `mailing list`_. The list's
archive can be found at https://lists.danielmoch.com/nncli-dev. Emails
can be sent to the following addresses to manage your subscription to
the mailing list.
All discussion takes place on the `issue tracker`_.

- nncli-dev+subscribe@
- nncli-dev+unsubscribe@
- nncli-dev+help@

Patches and pull requests are welcome, preferably via emailed output
of `git-request-pull(1)`_ sent to the mailing list. Bug reports should
also be directed to the mailing list.

If you aren't hosting a fork anywhere online, you can also send patches
using `git-format-patch(1)`_.
Pull requests are welcome.

Releases
--------

Releases are published to PyPI_. Signed source tarballs are maintained
at https://dl.danielmoch.com/nncli. Instructions for verifying
tarballs are in the README file at the previous link.
Releases are published to PyPI_.
Signed source tarballs are maintained on the `releases page`_.
Archives are signed with `signify`.
To support the use of `minisign`, which is compatable with `signify`,
detached signatures will be created.
Signature files are indicated with a .minisig extension.

.. _PyPI: https://pypi.org/project/nncli/
.. _mailing list: nncli-dev@danielmoch.com
.. _git-format-patch(1): https://www.git-scm.com/docs/git-format-patch
.. _git-request-pull(1): https://www.git-scm.com/docs/git-request-pull
.. _issue tracker: https://github.com/djmoch/nncli/issues
.. _releases page: https://github.com/djmoch/nncli/releases
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
'color_accent': 'blue',

# Set the repo location to get a badge with stats
'repo_url': 'https://git.danielmoch.com/nncli/',
'repo_url': 'https://github.com/djmoch/nncli/',
'repo_name': 'Git Repository',
'repo_type': None,

Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ NextCloud Notes Command Line Interface

.. image:: https://img.shields.io/pypi/l/nncli.svg
:alt: PyPI - License
:target: https://git.danielmoch.com/nncli/tree/LICENSE
:target: https://github.com/djmoch/nncli/blob/master/LICENSE
.. image:: https://img.shields.io/pypi/v/nncli.svg
:alt: PyPI
:target: https://pypi.org/project/nncli
Expand Down
30 changes: 2 additions & 28 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors = [
{name = "Daniel Moch", email = "daniel@danielmoch.com"},
]
readme = "README.rst"
requires-python = ">=3"
requires-python = ">=3.9"
classifiers = [
"License :: OSI Approved :: MIT License",
"Development Status :: 4 - Beta",
Expand All @@ -28,7 +28,7 @@ dynamic = [ "version", "description" ]

[project.urls]
Homepage = "https://nncli.org"
"Source Code" = "https://git.danielmoch.com/nncli"
"Source Code" = "https://github.com/djmoch/nncli"

[project.optional-dependencies]
dev = [
Expand Down Expand Up @@ -64,29 +64,3 @@ show_missing = true

[tool.pytest.ini_options]
mock_use_standalone_module = true

[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py37, py38, py39, py310, pylint, coverage
skipsdist = True
[testenv:pylint]
deps = -rrequirements-dev.txt
allowlist_externals = make
commands =
make lint
[testenv:coverage]
deps = -rrequirements-dev.txt
allowlist_externals = make
commands =
make coverage
[testenv]
deps = -rrequirements-dev.txt
allowlist_externals = make
commands =
make install
python -m pytest
"""
2 changes: 1 addition & 1 deletion src/nncli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
"""NextCloud Notes Command Line Interface"""

__version__ = '0.3.7'
__version__ = '0.3.8'

0 comments on commit 999f09f

Please sign in to comment.