Skip to content

Commit

Permalink
🥚 🎡 update change log and moban meta data
Browse files Browse the repository at this point in the history
  • Loading branch information
chfw committed May 13, 2020
1 parent f8002a4 commit 2559951
Show file tree
Hide file tree
Showing 12 changed files with 126 additions and 54 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Upload Python Package

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
46 changes: 41 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
Expand All @@ -52,8 +51,10 @@ htmlcov/
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
Expand All @@ -63,6 +64,7 @@ coverage.xml
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
Expand All @@ -75,6 +77,7 @@ instance/
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
Expand All @@ -85,17 +88,23 @@ profile_default/
ipython_config.py

# pyenv
.python-version
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that dont work, or not
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# celery beat schedule file
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py
Expand Down Expand Up @@ -127,6 +136,12 @@ dmypy.json
# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# VirtualEnv rules
# Virtualenv
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
Expand Down Expand Up @@ -159,6 +174,7 @@ pip-selfcheck.json
# Windows rules
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

Expand Down Expand Up @@ -264,13 +280,15 @@ flycheck_*.el
# Vim rules
# Swap
[._]*.s[a-v][a-z]
!*.svg # comment out if you don't need vector files
[._]*.sw[a-p]
[._]s[a-rt-v][a-z]
[._]ss[a-gi-z]
[._]sw[a-p]

# Session
Session.vim
Sessionx.vim

# Temporary
.netrwhist
Expand All @@ -281,7 +299,7 @@ tags
[._]*.un~

# JetBrains rules
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
Expand Down Expand Up @@ -311,9 +329,14 @@ tags
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/
Expand Down Expand Up @@ -363,6 +386,7 @@ fabric.properties

# SFTP configuration file
sftp-config.json
sftp-config-alt*.json

# Package control specific files
Package Control.last-run
Expand Down Expand Up @@ -400,6 +424,10 @@ tmtags
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace

# Local History for Visual Studio Code
.history/

# Xcode rules
# Xcode
Expand All @@ -426,6 +454,9 @@ DerivedData/
*.perspectivev3
!default.perspectivev3

## Gcc Patch
/*.gcno

# Eclipse rules
.metadata
bin/
Expand Down Expand Up @@ -477,12 +508,17 @@ local.properties

# Annotation Processing
.apt_generated/
.apt_generated_test/

# Scala IDE specific (Scala & Java development for Eclipse)
.cache-main
.scala_dependencies
.worksheet

# Uncomment this line if you wish to ignore the project description file.
# Typically, this file would be tracked if it contains build/dependency configurations:
#.project

# TortoiseGit rules
# Project-level settings
/.tgitconfig
Expand Down
9 changes: 3 additions & 6 deletions .moban.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
requires:
- type: git
url: https://github.com/moremoban/pypi-mobans
branch: dev
submodule: true
configuration:
template_dir:
- "pypi-mobans:templates"
- "git://github.com/moremoban/pypi-mobans.git?submodule=true&brach=master!/statics"
- "git://github.com/moremoban/pypi-mobans.git?branch=dev&submodule=true!/templates"
- ".moban.d"
configuration: pypifs.yml
targets:
Expand All @@ -22,3 +18,4 @@ targets:
template: CHANGELOG.rst.jj2
- lint.sh: lint.script.jj2
- README.rst: CUSTOM_README.rst.jj2
- ".github/workflows/pythonpublish.yml": "pythonpublish.yml"
23 changes: 6 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ notifications:
python:
- &pypy2 pypy2.7-6.0
- &pypy3 pypy3.5-6.0
- 3.8-dev
- 3.8
- 3.7
- 3.6
- 3.5
Expand All @@ -17,33 +17,22 @@ stages:
- moban
- test

.disable_global: &disable_global
addons: false
cache: false
env: {}
python: false
before_install: false
install: false
before_script: false
script: false
after_success: false
after_failure: false
before_deploy: false
deploy: false

.lint: &lint
<<: *disable_global
git:
submodules: false
python: 3.6
env:
- MINREQ=0
stage: lint
script: make install_test lint format git-diff-check

.moban: &moban
<<: *disable_global
python: 3.6
env:
- MINREQ=0
stage: moban
install: pip install moban>=0.0.4
install: pip install moban>=0.0.4 gitfs2 pypifs
script:
- moban
- git diff --exit-code
Expand Down
13 changes: 11 additions & 2 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
Change log
================================================================================

0.0.2 - 13.5.2020
--------------------------------------------------------------------------------

**updated**

#. `#8 <https://github.com/moremoban/pypifs/issues/8>`_: suppress pip install
std output
#. `#6 <https://github.com/moremoban/pypifs/issues/6>`_: added license text in
the package

0.0.1 - 18.8.2019
--------------------------------------------------------------------------------

first release
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
**first release**

#. what a feat!
9 changes: 8 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@ pypifs

.. image:: https://codecov.io/github/moremoban/pypifs/coverage.png
:target: https://codecov.io/github/moremoban/pypifs
.. image:: https://badge.fury.io/py/pypifs.svg
:target: https://pypi.org/project/pypifs

.. image:: https://pepy.tech/badge/pypifs/month
:target: https://pepy.tech/project/pypifs/month

.. image:: https://img.shields.io/github/stars/moremoban/pypifs.svg?style=social&maxAge=3600&label=Star
:target: https://github.com/moremoban/pypifs/stargazers

.. image:: https://dev.azure.com/moremoban/pypifs/_apis/build/status/moremoban.pypifs?branchName=master
:target: https://dev.azure.com/moremoban/pypifs/_build/latest?definitionId=2&branchName=master
Expand All @@ -28,7 +35,7 @@ Get a file inside a python package
>>> import fs
>>> pypi_fs = fs.open_fs("pypi://pypi-mobans-pkg/resources/templates")
>>> pypi_fs.readtext("_version.py.jj2")
'__version__ = "0.0.1"\n__author__ = "C.W."\n'
'__version__ = "0.0.2"\n__author__ = "C.W."\n'
List files of interest
Expand Down
7 changes: 7 additions & 0 deletions changelog.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: pypifs
organisation: moremoban
releases:
- changes:
- action: updated
details:
- "`#8`: suppress pip install std output"
- "`#6`: added license text in the package"
version: 0.0.2
date: 13.5.2020
- changes:
- action: first release
details:
Expand Down
8 changes: 4 additions & 4 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# https://www.sphinx-doc.org/en/master/usage/configuration.html

# -- Path setup --------------------------------------------------------------

Expand All @@ -20,9 +20,9 @@
copyright = ''
author = 'C.W.'
# The short X.Y version
version = '0.0.1'
version = '0.0.2'
# The full version, including alpha/beta/rc tags
release = '0.0.1'
release = '0.0.2'

# -- General configuration ---------------------------------------------------

Expand Down Expand Up @@ -59,4 +59,4 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['static']
html_static_path = ['static']
8 changes: 4 additions & 4 deletions pypifs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ organisation: "moremoban"
author: "C.W."
contact: "[email protected]"
company: "moban dev team"
version: "0.0.1"
current_version: "0.0.1"
release: "0.0.1"
copyright_year: 2019
version: "0.0.2"
current_version: "0.0.2"
release: "0.0.2"
copyright_year: 2019-2020
license: MIT
entry_points:
fs.opener:
Expand Down
2 changes: 1 addition & 1 deletion pypifs/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "0.0.1"
__version__ = "0.0.2"
__author__ = "C.W."
Loading

0 comments on commit 2559951

Please sign in to comment.