From e09a18eb44fd66a5b647c44c784cb9f7d924189e Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnter=20Milde?= Date: Wed, 29 Jun 2022 21:04:42 +0200 Subject: [PATCH] Release 0.8.0 Build with `flit` Prepare upload to pypi. --- doc/Makefile | 6 +++--- doc/conf.py | 4 ++-- doc/download/index.txt | 1 + pylit.py | 5 +---- setup.py | 51 -------------------------------------------------- 5 files changed, 7 insertions(+), 60 deletions(-) delete mode 100644 setup.py diff --git a/doc/Makefile b/doc/Makefile index aafbf55..5e108be 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -49,9 +49,9 @@ html: examples logo/pylit-bold-framed.png @echo @echo "Copying some source files" cp $(INDIR)/download/pylit $(HTMLDIR)/download/ - # cp $(INDIR)/examples/*.txt $(HTMLDIR)/examples/ - # cp $(INDIR)/examples/*.py $(HTMLDIR)/examples/ - # cp $(INDIR)/examples/*.sty $(HTMLDIR)/examples/ + cp $(INDIR)/examples/*.txt $(HTMLDIR)/examples/ + cp $(INDIR)/examples/*.py $(HTMLDIR)/examples/ + cp $(INDIR)/examples/*.sty $(HTMLDIR)/examples/ # cp $(INDIR)/examples/*.css $(HTMLDIR)/examples/ cp $(INDIR)/tutorial/*.py $(HTMLDIR)/tutorial/ cp $(INDIR)/tutorial/*.py.txt $(HTMLDIR)/tutorial/ diff --git a/doc/conf.py b/doc/conf.py index f4a7ae0..d629765 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -53,9 +53,9 @@ copyright = u'2009, 2022 Günter Milde' # :: # The short X.Y version. -version = '0.8' +version = '0.8.0' # The full version, including alpha/beta/rc tags. -release = '0.8.0dev' +release = '0.8.0' # There are two options for replacing ``|today|``: either, you set today to # some non-false value, then it is used:: diff --git a/doc/download/index.txt b/doc/download/index.txt index 6f5fcce..7dad0fb 100644 --- a/doc/download/index.txt +++ b/doc/download/index.txt @@ -30,6 +30,7 @@ pylit_ .. _Git repository: https://codeberg.org/milde/pylit .. _Git mirror: http://repo.or.cz/pylit.git .. _PyPI: https://pypi.python.org/pypi/pylit +.. _pip: https://pip.pypa.io/en/stable/ .. _repository snapshot: https://codeberg.org/milde/pylit/archive/master.zip .. _pylit.py: diff --git a/pylit.py b/pylit.py index a513281..015aa7a 100755 --- a/pylit.py +++ b/pylit.py @@ -114,7 +114,7 @@ from __future__ import print_function # # :: -__version__ = "0.8.0dev" +__version__ = '0.8.0' __docformat__ = 'restructuredtext' @@ -402,7 +402,6 @@ defaults.overwrite = 'update' # # :'yes': overwrite eventually existing `outfile`, # :'update': fail if the `outfile` is newer than `infile`, -# TODO: fix behaviour if both are of same age # :'no': fail if `outfile` exists. # # @@ -1450,8 +1449,6 @@ class PylitOptions(object): # * add the `text_extension`_ (code2txt) # * fallback: if no guess can be made, add ".out" # -# .. TODO: use values.outfile_extension if it exists? -# # :: def _get_outfile_name(self, values): diff --git a/setup.py b/setup.py deleted file mode 100644 index 06aaab6..0000000 --- a/setup.py +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/python -# coding=utf-8 -from distutils.core import setup - -setup(name='PyLit', - version='0.8.0dev', - description='Literate programming with reStructuredText', - long_description=""" - -PyLit (Python Literate) provides a plain but efficient tool for `literate -programming`: a bidirectional text/code converter. - - The idea is that you do not document programs (after the fact), but - write documents that *contain* the programs. - - -- John Max Skaller in a `Charming Python interview`_ - -Features --------- - -* `Dual Source` -* Simplicity -* Markup with reStructuredText_ -* Python Doctest Support - -.. _Charming Python interview: - http://www.ibm.com/developerworks/library/l-pyth7.html -.. _reStructuredText: https://docutils.sourceforge.io/rst.html - """, - author='Guenter Milde', - author_email='milde@users.sf.net', - url='https://repo.or.cz/pylit.git', - download_url='http://repo.or.cz/pylit.git/snapshot/HEAD.zip', - classifiers=[ - 'Development Status :: 4 - Beta', - 'Environment :: Console', - 'Intended Audience :: Developers', - 'License :: OSI Approved :: GNU General Public License (GPL)', - 'Natural Language :: English', - 'Natural Language :: German', - 'Operating System :: OS Independent', - 'Programming Language :: Python :: 2.7+', - 'Topic :: Software Development :: Documentation', - 'Topic :: Software Development :: User Interfaces', - 'Topic :: Text Processing :: Markup' - ], - provides=['pylit'], - scripts=['rstdocs/download/pylit'], - package_dir = {'': 'src'}, - py_modules = ['pylit'] - ) -- 2.11.4.GIT