Skip to content

Commit b99b231

Browse files
committed
✨ working pkg
1 parent 59337fa commit b99b231

File tree

9 files changed

+33
-33
lines changed

9 files changed

+33
-33
lines changed

.moban.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ configuration:
22
template_dir:
33
- ".moban.d"
44
- "mobans/templates"
5-
configuration: "pypi-mobans.yml"
5+
configuration: "pypi-mobans-pkg.yml"
66
targets:
77
- "README.rst": CUSTOM_README.rst.jj2
88
- "LICENSE": NEW_BSD_LICENSE.jj2
@@ -11,7 +11,7 @@ targets:
1111
- "tests/requirements.txt": "tests/custom_requirements.txt.jj2"
1212
- "docs/source/conf.py": "docs/source/conf.py.jj2"
1313
- "test.sh": test.script.jj2
14-
- "pypi_mobans/_version.py": "_version.py.jj2"
14+
- "pypi_mobans_pkg/_version.py": "_version.py.jj2"
1515
- .gitignore: gitignore.jj2
1616
- .travis.yml: travis.yml.jj2
1717
- output: "CHANGELOG.rst"

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ that the following conditions are met:
1212
this list of conditions and the following disclaimer in the documentation
1313
and/or other materials provided with the distribution.
1414

15-
* Neither the name of 'pypi-mobans' nor the names of the contributors
15+
* Neither the name of 'pypi-mobans-pkg' nor the names of the contributors
1616
may be used to endorse or promote products derived from this software
1717
without specific prior written permission.
1818

MANIFEST.in

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
include README.rst
22
include CHANGELOG.rst
3-
include pypi_mobans/resources/templates/*
4-
recursive-include pypi_mobans/resources/templates/gitignore *.*
5-
include pypi_mobans/resources/templates/docs/*
6-
include pypi_mobans/resources/templates/tests/*
7-
include pypi_mobans/resources/config/*
3+
include pypi_mobans_pkg/resources/templates/*
4+
recursive-include pypi_mobans_pkg/resources/templates/gitignore *.*
5+
include pypi_mobans_pkg/resources/templates/docs/*
6+
include pypi_mobans_pkg/resources/templates/tests/*
7+
include pypi_mobans_pkg/resources/config/*

README.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
================================================================================
2-
pypi-mobans
2+
pypi-mobans-pkg
33
================================================================================
44

5-
.. image:: https://api.travis-ci.org/moremoban/pypi-mobans.svg
6-
:target: http://travis-ci.org/moremoban/pypi-mobans
5+
.. image:: https://api.travis-ci.org/moremoban/pypi-mobans-pkg.svg
6+
:target: http://travis-ci.org/moremoban/pypi-mobans-pkg
77

8-
.. image:: https://codecov.io/github/moremoban/pypi-mobans/coverage.png
9-
:target: https://codecov.io/github/moremoban/pypi-mobans
8+
.. image:: https://codecov.io/github/moremoban/pypi-mobans-pkg/coverage.png
9+
:target: https://codecov.io/github/moremoban/pypi-mobans-pkg
1010

1111
.. image:: https://img.shields.io/gitter/room/gitterHQ/gitter.svg
1212
:target: https://gitter.im/chfw_moban/Lobby
@@ -21,5 +21,5 @@ You can get it:
2121

2222
.. code-block:: bash
2323
24-
$ git clone https://github.com/moremoban/pypi-mobans.git
25-
$ cd pypi-mobans
24+
$ git clone https://github.com/moremoban/pypi-mobans-pkg.git
25+
$ cd pypi-mobans-pkg

docs/source/conf.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
# -- Project information -----------------------------------------------------
2525

26-
project = u'pypi-mobans'
26+
project = u'pypi-mobans-pkg'
2727
copyright = u'2018 Onni Software Ltd.'
2828
author = u'C.W.'
2929

@@ -109,7 +109,7 @@
109109
# -- Options for HTMLHelp output ---------------------------------------------
110110

111111
# Output file base name for HTML help builder.
112-
htmlhelp_basename = 'pypi-mobansdoc'
112+
htmlhelp_basename = 'pypi-mobans-pkgdoc'
113113

114114

115115
# -- Options for LaTeX output ------------------------------------------------
@@ -136,7 +136,7 @@
136136
# (source start file, target name, title,
137137
# author, documentclass [howto, manual, or own class]).
138138
latex_documents = [
139-
(master_doc, 'pypi-mobans.tex', u'pypi-mobans Documentation',
139+
(master_doc, 'pypi-mobans-pkg.tex', u'pypi-mobans-pkg Documentation',
140140
u'Onni Software Ltd.', 'manual'),
141141
]
142142

@@ -146,7 +146,7 @@
146146
# One entry per manual page. List of tuples
147147
# (source start file, name, description, authors, manual section).
148148
man_pages = [
149-
(master_doc, 'pypi-mobans', u'pypi-mobans Documentation',
149+
(master_doc, 'pypi-mobans-pkg', u'pypi-mobans-pkg Documentation',
150150
[author], 1)
151151
]
152152

@@ -157,8 +157,8 @@
157157
# (source start file, target name, title, author,
158158
# dir menu entry, description, category)
159159
texinfo_documents = [
160-
(master_doc, 'pypi-mobans', u'pypi-mobans Documentation',
161-
author, 'pypi-mobans', 'One line description of project.',
160+
(master_doc, 'pypi-mobans-pkg', u'pypi-mobans-pkg Documentation',
161+
author, 'pypi-mobans-pkg', 'One line description of project.',
162162
'Miscellaneous'),
163163
]
164164

@@ -172,9 +172,9 @@
172172

173173
# TODO: DESCRIPTION not configurable upstream
174174
texinfo_documents = [
175-
('index', 'pypi-mobans',
176-
'pypi-mobans Documentation',
177-
'Onni Software Ltd.', 'pypi-mobans',
175+
('index', 'pypi-mobans-pkg',
176+
'pypi-mobans-pkg Documentation',
177+
'Onni Software Ltd.', 'pypi-mobans-pkg',
178178
DESCRIPTION,
179179
'Miscellaneous'),
180180
]

pypi-mobans-pkg.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "pypi-mobans"
1+
name: "pypi-mobans-pkg"
22
organisation: "moremoban"
33
author: "C.W."
44

pypi_mobans_pkg/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# flake8: noqa
22
import os
3-
from pypi_mobans._version import __version__
4-
from pypi_mobans._version import __author__
3+
from pypi_mobans_pkg._version import __version__
4+
from pypi_mobans_pkg._version import __author__
55
from lml.plugin import PluginInfo
66

77

8-
@PluginInfo('library', tags=['setupmobans', 'pypi', 'pypimobans'])
8+
@PluginInfo('library', tags=['setupmobans', 'pypi', 'pypi-mobans-pkg'])
99
class Pypkg():
1010
def __init__(self):
1111
__package_path__ = os.path.dirname(__file__)

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
PY2 = sys.version_info[0] == 2
1111
PY26 = PY2 and sys.version_info[1] < 7
1212

13-
NAME = 'pypi-mobans'
13+
NAME = 'pypi-mobans-pkg'
1414
AUTHOR = 'C.W.'
1515
VERSION = '0.0.1'
1616
1717
LICENSE = 'public license'
1818
DESCRIPTION = (
1919
'Scaffolding mobans for your Python project.'
2020
)
21-
URL = 'https://github.com/moremoban/pypi-mobans'
21+
URL = 'https://github.com/moremoban/pypi-mobans-pkg'
2222
DOWNLOAD_URL = '%s/archive/0.0.0.tar.gz' % URL
2323
FILES = ['README.rst', 'CHANGELOG.rst']
2424
KEYWORDS = [
@@ -49,7 +49,7 @@
4949
# You do not need to read beyond this line
5050
PUBLISH_COMMAND = '{0} setup.py sdist bdist_wheel upload -r pypi'.format(
5151
sys.executable)
52-
GS_COMMAND = ('gs pypi-mobans v0.0.0 ' +
52+
GS_COMMAND = ('gs pypi-mobans-pkg v0.0.0 ' +
5353
"Find 0.0.0 in changelog for more details")
5454
NO_GS_MESSAGE = ('Automatic github release is disabled. ' +
5555
'Please install gease to enable it.')
@@ -80,7 +80,7 @@ def run(self):
8080
self.status('Removing previous builds...')
8181
rmtree(os.path.join(HERE, 'dist'))
8282
rmtree(os.path.join(HERE, 'build'))
83-
rmtree(os.path.join(HERE, 'pypi_mobans.egg-info'))
83+
rmtree(os.path.join(HERE, 'pypi_mobans_pkg.egg-info'))
8484
except OSError:
8585
pass
8686

test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
pip freeze
2-
nosetests --with-coverage --cover-package pypi_mobans --cover-package tests tests docs/source pypi_mobans && flake8 . --exclude=.moban.d --builtins=unicode,xrange,long
2+
nosetests --with-coverage --cover-package pypi_mobans_pkg --cover-package tests tests docs/source pypi_mobans_pkg && flake8 . --exclude=.moban.d --builtins=unicode,xrange,long

0 commit comments

Comments
 (0)