Skip to content

Commit 65b51a8

Browse files
committed
update doc files, initial release to PyPI
1 parent 683a597 commit 65b51a8

File tree

8 files changed

+65
-65
lines changed

8 files changed

+65
-65
lines changed

AUTHORS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
=======
2+
Credits
3+
=======
4+
5+
* Simon Percivall <[email protected]>
6+
* Jonathan Tsai <[email protected]>
7+
* Hacktoolkit <[email protected]>

AUTHORS.rst

Lines changed: 0 additions & 5 deletions
This file was deleted.

CONTRIBUTING.rst renamed to CONTRIBUTING.md

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,40 @@
1-
============
2-
Contributing
3-
============
1+
# Contributing
42

53
Contributions are welcome, and they are greatly appreciated! Every
64
little bit helps, and credit will always be given.
75

86
You can contribute in many ways:
97

10-
Types of Contributions
11-
----------------------
8+
## Types of Contributions
129

13-
Report Bugs
14-
~~~~~~~~~~~
10+
### Report Bugs
1511

16-
Report bugs at https://github.com/simonpercivall/django-dbshell-plus.
12+
Report bugs at https://github.com/hacktoolkit/django-dbshell-plus.
1713

1814
If you are reporting a bug, please include:
1915

2016
* Any details about your local setup that might be helpful in troubleshooting.
2117
* Detailed steps to reproduce the bug.
2218

23-
Fix Bugs
24-
~~~~~~~~
19+
### Fix Bugs
2520

2621
Look through the GitHub issues for bugs. Anything tagged with "bug"
2722
is open to whoever wants to implement it.
2823

29-
Implement Features
30-
~~~~~~~~~~~~~~~~~~
24+
### Implement Features
3125

3226
Look through the GitHub issues for features. Anything tagged with "feature"
3327
is open to whoever wants to implement it.
3428

35-
Write Documentation
36-
~~~~~~~~~~~~~~~~~~~
29+
### Write Documentation
3730

3831
Django DB Shell Plus could always use more documentation, whether as part of the
3932
official Django DB Shell Plus docs, in docstrings, or even on the web in blog posts,
4033
articles, and such.
4134

42-
Submit Feedback
43-
~~~~~~~~~~~~~~~
35+
### Submit Feedback
4436

45-
The best way to send feedback is to file an issueat https://github.com/simonpercivall/django-dbshell-plus/issues.
37+
The best way to send feedback is to file an issue at https://github.com/hacktoolkit/django-dbshell-plus.
4638

4739
If you are proposing a feature:
4840

@@ -51,8 +43,7 @@ If you are proposing a feature:
5143
* Remember that this is a volunteer-driven project, and that contributions
5244
are welcome :)
5345

54-
Get Started!
55-
------------
46+
## Get Started!
5647

5748
Ready to contribute? Here's how to set up `django_dbshell_plus` for local development.
5849

@@ -67,8 +58,7 @@ Ready to contribute? Here's how to set up `django_dbshell_plus` for local develo
6758

6859
6. Commit and send the patch or create a pull request.
6960

70-
Pull Request Guidelines
71-
-----------------------
61+
## Pull Request Guidelines
7262

7363
Before you submit a pull request, check that it meets these guidelines:
7464

HISTORY.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Changelog
2+
3+
Here's the recent changes to Django DB Shell Plus.
4+
5+
---
6+
7+
Version: 2.0.0
8+
Released: 2024-06-20
9+
10+
Updates for Python 3
11+
12+
---
13+
14+
Version: 1.0.1
15+
Released: 2015-08-12
16+
17+
Initial version, use `pgcli` or `mycli` when available.
18+
19+
---
20+

HISTORY.rst

Lines changed: 0 additions & 14 deletions
This file was deleted.

Makefile

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,47 @@
11
.PHONY: clean-pyc clean-build docs clean
22

3+
## help - Display help about make targets for this Makefile
34
help:
4-
@echo "clean-build - remove build artifacts"
5-
@echo "clean-pyc - remove Python file artifacts"
6-
@echo "lint - check style with flake8"
7-
@echo "coverage - check code coverage quickly with the default Python"
8-
@echo "docs - generate Sphinx HTML documentation, including API docs"
9-
@echo "release - package and upload a release"
10-
@echo "sdist - package"
5+
@cat Makefile | grep '^## ' --color=never | cut -c4- | sed -e "`printf 's/ - /\t- /;'`" | column -s "`printf '\t'`" -t
116

7+
## clean - remove all build, test, coverage and Python artifacts
128
clean: clean-build clean-pyc clean-docs
139
rm -fr htmlcov/
1410

11+
## clean-build - remove build artifacts
1512
clean-build:
1613
rm -fr build/
1714
rm -fr dist/
1815
rm -fr *.egg-info
1916

17+
## clean-pyc - remove Python file artifacts
2018
clean-pyc:
2119
find . -name '*.pyc' -exec rm -f {} +
2220
find . -name '*.pyo' -exec rm -f {} +
2321
find . -name '*~' -exec rm -f {} +
2422

23+
## clean-docs - remove generated docs
2524
clean-docs:
2625
rm -f docs/django_dbshell_plus*.rst
2726

27+
## coverage - check code coverage quickly with the default Python
28+
coverage:
29+
30+
## lint - check style with flake8
2831
lint:
2932
flake8 lib/django_dbshell_plus
3033

34+
## docs - generate Sphinx HTML documentation, including API docs
3135
docs:
3236
tox -e docs
3337

38+
## dist - package
3439
dist: clean
3540
python setup.py sdist
3641
python setup.py bdist_wheel
3742
python setup.py bdist_egg
3843
ls -l dist
44+
45+
## release - package and upload a release
46+
release: dist
47+
sh -c "twine upload dist/*.whl dist/*.tar.gz --verbose"

README.rst renamed to README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
1-
====================
2-
Django DB Shell Plus
3-
====================
1+
# Django DB Shell Plus
42

53
**NOTE:**
64
This is a fork from
75
https://github.com/simonpercivall/django-dbshell-plus, which has not
86
been maintained for over 9 years.
97

108

11-
.. image:: https://badge.fury.io/py/django_dbshell_plus.png
12-
:target: http://badge.fury.io/py/django-dbshell-plus
9+
[https://badge.fury.io/py/htk_django_dbshell_plus.png](http://badge.fury.io/py/htk-django-dbshell-plus)
1310

14-
.. image:: https://pypip.in/d/django_dbshell_plus/badge.png
15-
:target: https://crate.io/packages/django-dbshell-plus?version=latest
11+
[https://pypip.in/d/htk_django_dbshell_plus/badge.png](https://crate.io/packages/htk-django-dbshell-plus?version=latest)
1612

1713

1814
A dbshell_plus management command for Django that selects `pgcli` or `mycli` when available.

setup.py

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
# -*- coding: utf-8 -*-
33
import os
44
import re
5-
from setuptools import setup, find_packages
65

7-
readme = open('README.rst').read()
8-
history = open('HISTORY.rst').read().replace('.. :changelog:', '')
6+
from setuptools import find_packages, setup
7+
8+
readme = open('README.md').read()
9+
history = open('HISTORY.md').read().replace('# Changelog', '')
910

1011

1112
def read_reqs(name):
@@ -24,13 +25,13 @@ def read_version():
2425
# NB: _don't_ add namespace_packages to setup(), it'll break
2526
# everything using imp.find_module
2627
setup(
27-
name='django-dbshell-plus',
28+
name='htk-django-dbshell-plus',
2829
version=read_version(),
2930
description='A dbshell_plus management command for Django that selects pgcli or mycli when available.',
3031
long_description=readme + '\n\n' + history,
31-
author='Simon Percivall',
32-
author_email='percivall@gmail.com',
33-
url='https://github.com/simonpercivall/django-dbshell-plus',
32+
author='Hacktoolkit',
33+
author_email='hello@hacktoolkit.com',
34+
url='https://github.com/hacktoolkit/django-dbshell-plus',
3435
packages=find_packages('lib'),
3536
package_dir={'': 'lib'},
3637
include_package_data=True,
@@ -43,10 +44,6 @@ def read_version():
4344
'Intended Audience :: Developers',
4445
'License :: OSI Approved :: BSD License',
4546
'Natural Language :: English',
46-
"Programming Language :: Python :: 2",
47-
'Programming Language :: Python :: 2.6',
48-
'Programming Language :: Python :: 2.7',
4947
'Programming Language :: Python :: 3',
50-
'Programming Language :: Python :: 3.3',
5148
],
5249
)

0 commit comments

Comments
 (0)