Blame SPECS/python-typeshed.spec

3a6819
%global checkout d82d339
3a6819
3a6819
Name:           python-typeshed
3a6819
# There are no actual releases of typeshed so we are making one up
3a6819
Epoch:          1
3a6819
Version:        0.1
3a6819
Release:        0.20191011git2%{?dist}
3a6819
Summary:        Static type information for python modules
3a6819
3a6819
License:        ASL 2.0
3a6819
URL:            https://github.com/python/typeshed
3a6819
# git archive --prefix=typeshed-0.1-d82d339/ d82d339 | gzip -c9 >typeshed-0.1-d82d339.tar.gz
3a6819
Source0:        typeshed-%{version}-%{checkout}.tar.gz
3a6819
3a6819
BuildArch:      noarch
3a6819
3a6819
%description
3a6819
Typeshed models function types for the Python standard library
3a6819
and Python builtins, as well as third party packages.
3a6819
3a6819
This data can e.g. be used for static analysis, type checking or type inference.
3a6819
3a6819
This package stores the typedata in /usr/share/typeshed
3a6819
3a6819
%prep
3a6819
%autosetup -n typeshed-%{version}-%{checkout}
3a6819
3a6819
%build
3a6819
# All stub files, nothing to build
3a6819
3a6819
%install
3a6819
mkdir -p %{buildroot}/%{_datadir}/typeshed
3a6819
for dir in stdlib third_party ; do
3a6819
    cp -r $dir %{buildroot}/%{_datadir}/typeshed/$dir
3a6819
done
3a6819
3a6819
%files
3a6819
%doc README.md
3a6819
%license LICENSE
3a6819
%{_datadir}/typeshed
3a6819
3a6819
%changelog
3a6819
* Thu Feb 25 2021 Gwyn Ciesla <gwync@protonmail.com> - 1:0.1-0.20191011git2
3a6819
- Release bump.
3a6819
3a6819
* Thu Feb 25 2021 Gwyn Ciesla <gwync@protonmail.com> - 1:0.1-0.20191011git
3a6819
- Epoch bump, revert to last known good.
3a6819
3a6819
* Wed Feb 17 2021 Gwyn Ciesla <gwync@protonmail.com> - 0.1-0.20210217git
3a6819
- Fresh checkout.
3a6819
3a6819
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-0.20191011git
3a6819
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
3a6819
3a6819
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-0.20191010git
3a6819
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
3a6819
3a6819
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-0.20191009git
3a6819
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
3a6819
3a6819
* Tue Oct 08 2019 Gwyn Ciesla <gwync@protonmail.com> = 0.1-0.20191008git
3a6819
- Update to latest.
3a6819
3a6819
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-0.20170617git
3a6819
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3a6819
3a6819
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-0.20170616git
3a6819
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3a6819
3a6819
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-0.20170615git
3a6819
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
3a6819
3a6819
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-0.20170614git
3a6819
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3a6819
3a6819
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-0.20170613git
3a6819
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3a6819
3a6819
* Mon Jun 12 2017 Gwyn Ciesla <limburgher@gmail.com> - 0.1-0.20170612git
3a6819
- Latest upstream.
3a6819
3a6819
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-0.20161223git
3a6819
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3a6819
3a6819
* Thu Dec 22 2016 CAI Qian <caiqian@redhat.com> - 0.1.0-20161222
3a6819
- Update to the latest upstream 7c706e1
3a6819
3a6819
* Mon Jul 18 2016 David Shea - 0.1.0-20160713
3a6819
- Add http_client to six.moves, add missing functions to urllib2 fix some types in gettext
3a6819
- Fix types.MappingProxyType
3a6819
- Fix heapq.merge signature for Python >= 3.5
3a6819
- Add full class definitions for Process, Queue, and Lock
3a6819
- Make Empty a subclass of Exception
3a6819
- add types to logging
3a6819
- make xml.etree.ElementTree.Element a Sequence
3a6819
- Improve socket py2
3a6819
- Improve http
3a6819
- Add logging.WARN; TextIO -> IO[str]
3a6819
- Fix log() signatures; change msg: str to msg: Text.
3a6819
- Changed all regular expression findall() to return list[Any].
3a6819
- Allow use of kwargs in MutableMapping.update
3a6819
- add types to socketserver for py2
3a6819
- fix sys.exc_info return type
3a6819
- Fix argument type for datetime.now.
3a6819
- re methods' pattern-parameters don't affect the return value anymore
3a6819
- fleshing out some more stubs for sqlalchemy
3a6819
- Fix argument type for configparser.write
3a6819
- Add TYPE_CHECKING = True
3a6819
- Fix email typing errors
3a6819
- First cut at stubs for pymssql.
3a6819
- Make os.name `str` in python 3.
3a6819
- changed format_exception to use BaseException as value
3a6819
- Added os.sync, os.truncate and os.fwalk for Python version >= 3.3
3a6819
- Use "..." for attribute values, instead of None, [], {}
3a6819
- csv module: make reader() and writer() return types private and non-abstract
3a6819
- add stub for stdlib abc.ABC in python 3.4+
3a6819
- a few more stubs for sqlalchemy
3a6819
- Fix names of several stat constants
3a6819
- difflib functions return Iterators, not Iterables
3a6819
- Add stub for statvfs and type for fstatvfs (2.7)
3a6819
- Use unicode rather than str for os env functions
3a6819
- adding type-specific assertEqual cases
3a6819
- Add stubs for importlib.__init__
3a6819
- Use actual base type
3a6819
- Annotate **kwargs with dictionary value type only
3a6819
- stdlib: StringIO - Add len attribute
3a6819
- Fix bad syntax in two stubs.
3a6819
- Implement stubs for importlib.abc and update types.ModuleType
3a6819
- Add stubs for importlib.machinery
3a6819
- Add tarfile.open
3a6819
- Add stubs for importlib.util
3a6819
- fix return type for traceback.format_exception
3a6819
- Make the 'symmetric' argument to SQLAlchemy's between optional.
3a6819
- Add exec to Python 2 builtins
3a6819
- Set a default value for output in CalledProcessError.__init__
3a6819
- ModuleType has a __file__ attribute.
3a6819
- Fix some stubs in urllib.parse
3a6819
- email.header: Make decode_header also accept str.
3a6819
- Added JSONEncoder and JSONDecoder to stdlib/2.7/json.pyi
3a6819
- os: Add buffering to fdopen.
3a6819
- Add stubs for dis and opcode
3a6819
- Attempt to reduce cyclical dependencies between types and importlib.
3a6819
- Add types to stub for warnings module.
3a6819
- Fix signatures of call, check_call and check_output in subprocess
3a6819
- Correct type of formatter_class arg to ArgParse()
3a6819
- improve unittest
3a6819
- First pass at dateutil
3a6819
- Add stdlib/2.7/traceback._print
3a6819
- Update set methods to take multiple iterables
3a6819
- Add cmp to list.sort in python 2.7
3a6819
- __builtin__: Fix bytearray on python 2
3a6819
- add bytearray.insert
3a6819
- add some types to os
3a6819
- merge py2 and py3 argparse
3a6819
- Two small changes to help the mypy test suite pass
3a6819
- Fix some issues for dateutil and argparse
3a6819
- subprocess: Fix return type of check_output.
3a6819
- Add stub for boto.exception
3a6819
- add default arguments to traceback.format_exception
3a6819
- add ChainMap class to collections module
3a6819
- More fixes for argparse.
3a6819
- builtins: Remove Exception.message.
3a6819
- Mypy stub fixes for strict optional mode
3a6819
3a6819
* Mon Jun 13 2016 David Shea - 0.1.0-20160603git
3a6819
- Added type annotations and small fixes
3a6819
- Add stub version of Type[C]
3a6819
- Don't use basestring in tempfile stub
3a6819
- Added stdlib/2.7/getopt.pyi, updated 3/getopt.pyi
3a6819
- Fix setsockopt signature.
3a6819
- specifiy Callable in sys.call_tracing
3a6819
- more closely fit to html.parser documentation
3a6819
- Improve email.*
3a6819
- add types to sys.getrefcount
3a6819
- complete urllib
3a6819
- add types to socket.socket.send{,all}
3a6819
- complete socketserver
3a6819
- complete ssl
3a6819
- Initial stubs for tkinter
3a6819
- Support for 'from six.moves import http_cookies'
3a6819
- Correct return value of round in Python 2.
3a6819
- Fixes a few tzinfo method's return type
3a6819
- Update calendar.pyi `timegm` to accept arbitrary length tuples
3a6819
3a6819
* Fri May 20 2016 David Shea - 0.1-0.20160520git
3a6819
- add AST.__init__ annotation
3a6819
- Change datetime.datetime.astimezone tz argument type from timezone to tzinfo
3a6819
- A couple new definitions, some more unicode for 2.7
3a6819
- Fix html.escape signature
3a6819
- Add types for gettext
3a6819
- Fix type of getsockopt
3a6819
- type `errors` in codecs.EncodedFile
3a6819
- Add __version__ to requests
3a6819
- Use __delete__, not __del__, in class property.
3a6819
- getpass return str
3a6819
- Make property a type
3a6819
- Almost all re functions take a compiled pattern.
3a6819
- Add note about not using basestring in tempfile
3a6819
- Accept more unicode in 2.7 tempfile stubs
3a6819
- Add some missing "type" attributes
3a6819
- fix integration of io with mypy
3a6819
- Add apply() and coerce() to 2.7 builtins.
3a6819
- Add __future__.generator_stop for Python 3.5
3a6819
- Fix subprocess stubs
3a6819
- improve io
3a6819
- Add os.replace()
3a6819
- enable string arguments for start, end, and span methods of Match object
3a6819
3a6819
* Tue May 17 2016 David Shea - 0.1-0.20160505git
3a6819
- Fix and greatly expand stubs for sqlalchemy.
3a6819
- Expand the sqlalchemy stubs related to the Column model.
3a6819
- Type Check webbrowser py3 module
3a6819
- Add missing exec*, EX_* stubs for python 2 and fix py3 types.
3a6819
- Add py2 webbrowser type checking
3a6819
- Fix urlunparse stubs for 2.7 to correctly support a list/iterator argument
3a6819
- Improvements to builtins min/max
3a6819
- Add missing definition of compile() for 2.7.
3a6819
- Add abc.abstractproperty (Python 3)
3a6819
- Fix incorrect sys.exit() type.
3a6819
- Additional type information for asyncio
3a6819
- Fix type for reduce
3a6819
- Remove invalid Python 3 syntax
3a6819
- Fix asyncio.coroutine signature
3a6819
- Stub for calendar module
3a6819
- Stub for shelve
3a6819
- Remove contents of problematic asyncio __all__s
3a6819
- Fixed 2.7 stubs for traceback
3a6819
- Specify attribute types of SyntaxError
3a6819
- Define three argument type() overload (Python 3)
3a6819
- reduce use of @overload in socket stubs
3a6819
- Update stub for zlib
3a6819
- Update stub for gc
3a6819
- Add stub for multiprocessing.cpu_count()
3a6819
- Stubs for pdb (only the most useful functions).
3a6819
- Add missing import of List from typing.
3a6819
- Fix traceback.pyi right.
3a6819
- Fix typos: termina[ta]te()
3a6819
- Make tests version-aware.
3a6819
- Type check xml.etree module
3a6819
- Improve Python 2.7 inspect stub
3a6819
- sqlite3 stub for 2.7  and 3
3a6819
- Fix Python 2.7 inspect stub (currentframe + frame type)
3a6819
- Improve Python 3 inspect stub
3a6819
- Add tornado.locks module
3a6819
- Make all function annotations accessible from builtins complete
3a6819
- Allow adding custom argparse.Actions in add_argument
3a6819
- Bandaid for sqlalchemy.
3a6819
- Stubs for setuptools' pkg_resources package
3a6819
- Ignore Emacs backup files
3a6819
- Complete getpass stubs
3a6819
- Add stubs for configparser
3a6819
- Complete pickle stubs
3a6819
- Complete pickle and cPickle stubs for Python 2
3a6819
- remove superfluous type comment in urllib.pyi
3a6819
- Better stub for contextlib.contextmanager.
3a6819
- add stdlib/2.7/heapq.pyi
3a6819
- Use IO[bytes] instead of BytesIO in the pickle stub.
3a6819
- Improve Python 3 fcntl stub
3a6819
- Add version keyword arg to argparse.ArgumentParser.add_argument
3a6819
- Fix signature for reduce in some files.
3a6819
- Hopeful fix for fcntl stubs
3a6819
- fileinput first version
3a6819
- Update dbapi2.pyi to allow `execute` without binding params
3a6819
- add `__dict__` attribute to class instance
3a6819
- Add note about obtaining consent of package owner for third-party stubs.
3a6819
- Implement itertools.chain.from_iterable().
3a6819
- Added stubs for 2.7 Selenium WebElement
3a6819
- Add missing return type for __init__()
3a6819
- Add 2.7/optparse.pyi
3a6819
- change ='' to :str=... in httplib
3a6819
- Move warnings.pyi into 2and3/.
3a6819
- Enable typing.DefaultDict as an alias for collections.defaultdict
3a6819
- Precision surgery to take out sqlalchemy test failures
3a6819
- Fix select stub for 2.7
3a6819
- Various updates to stdlib modules
3a6819
- py3: traceback.pyi: added format_stack
3a6819
- Add a very basic bz2 stub
3a6819
- Simple stub for tornado.testing
3a6819
- Break cycle between typing and collections.
3a6819
- Update dict(...) to accept keyword arguments
3a6819
- Add Text to typing.pyi
3a6819
- Support keyword arguments for dict() (Python 2)
3a6819
- 2.7 stub updates
3a6819
- Add stdlib/3/tokenize.pyi
3a6819
- Change logging signatures to allow unicode
3a6819
- Fix type error in 2.7 stubs
3a6819
- Fixes to urllib2 stubs
3a6819
- Make Queue generic in Python 2, similar to Python 3
3a6819
- dateutil stubs
3a6819
- Fix Py2 hashlib.new arg type
3a6819
- Add stubs for typed_ast
3a6819
- Add type.__call__.
3a6819
- Add missing 3.3+ and 3.5+ math functions
3a6819
- stdlib/2.7./codecs.pyi: added missing __enter__() and __exit__()
3a6819
- Fixes to os.environ
3a6819
- Use overloading rather than Union for MutableMapping.update
3a6819
- Add abc.ABCMeta.register method
3a6819
- json.dump{s,}' indent parameter also supports str
3a6819
- pprint stream type
3a6819
- Finish Python 3 hashlib stub
3a6819
- Added bisect.pyi and ConfigParser.pyi
3a6819
- Add Python 3 ast module; update Python 2.7 ast module; fixup typed_ast
3a6819
- Fix 2.7 bisect stubs (lo/hi have defaults).
3a6819
- Misc stub fixes
3a6819
3a6819
* Mon Feb 22 2016 David Shea - 0.1-0.20160222git
3a6819
- Better approach to testing.
3a6819
- Fix and greatly expand stubs for sqlalchemy.
3a6819
- Expand the sqlalchemy stubs related to the Column model.
3a6819
- Type Check webbrowser py3 module
3a6819
- Add missing exec*, EX_* stubs for python 2 and fix py3 types.
3a6819
- Add py2 webbrowser type checking
3a6819
- Fix urlunparse stubs for 2.7 to correctly support a list/iterator argument
3a6819
- Improvements to builtins min/max
3a6819
- Try using "pip install -U ..." to install mypy
3a6819
- Add missing definition of compile() for 2.7.
3a6819
- Add abc.abstractproperty (Python 3)
3a6819
- Fix incorrect sys.exit() type.
3a6819
- Additional type information for asyncio
3a6819
3a6819
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-0.20160129git
3a6819
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3a6819
3a6819
* Thu Jan 28 2016 David Shea <dshea@redhat.com> - 0.1-0.20160128git
3a6819
- Add timer class to threading.pyi
3a6819
- Assorted stub updates
3a6819
- Some fixes to threading
3a6819
- Add Iterable base class to csv.DictReader.
3a6819
- Replace some unicode argument defaults with ...
3a6819
- Use NamedTuple for inspect.ArgSpec and .FullArgSpec.
3a6819
- Make Future stub resemble reality better.
3a6819
- Make asyncio more Generator friendly
3a6819
- Fix default parameter syntax.
3a6819
- Fix os.environ improperly classified as not mutable for python 2.
3a6819
- Implement fromhex and maketrans method
3a6819
- Add missing re module constants for 2.7.
3a6819
- Add message attribute to class BaseException.
3a6819
- Fix several python 2 library stub errors.
3a6819
- Fix class file so it can be used as "with file(...) as f: f.read() # etc.
3a6819
- Fix min()/max() overloading with key= parameter.
3a6819
- Fix stubs for concurrent.futures
3a6819
- Fix type for py2 traceback.format_exc and add to python 3.
3a6819
- Add stubs for traceback.format_exception.
3a6819
- Port stub for os.walk from python 3 to 2 and cleanup comment.
3a6819
- Fix datetime.timedelta() argument types to be floats.
3a6819
- Add a Travis CI configuration.
3a6819
- Add stdlib/2.7 to Travis CI tests.
3a6819
- Test 2and3, 3.3, 3.4.
3a6819
- Add stubs for some of the most heavily used parts of six.moves
3a6819
- Revert "Fix min()/max() overloading with key= parameter.
3a6819
- Fix signature for 2.7/binascii.crc32().
3a6819
- Fix constructor signatures to 2.7/cPickle.{Pickler,Unpickler}.
3a6819
- Copy frozenset stubs from 3/builtins.pyi into 2.7/__builtin__.pyi.
3a6819
- Add 2.7 stubs for dict.fromkeys().
3a6819
- Fix ast.parse(). The 2nd and 3rd arg are optional.
3a6819
- Expand stubs for simplejson, unittest, email
3a6819
- Comment out references to modules without stubs introduced by accident.
3a6819
- Add html module stubs.
3a6819
- Add various annotations to complete more of six.moves.
3a6819
3a6819
* Fri Jan 15 2016 David Shea <dshea@redhat.com> - 0.1-0.20160115git
3a6819
- 2.7 does not have lru_cache()
3a6819
- Add keyword args to stdlib's json.pyi
3a6819
- Add Generator to 2.7/typing.pyi.
3a6819
- Make Reversible covariant.
3a6819
- Fix Reversible.__reversed__() return type.
3a6819
- Add flush keyword arg to print()
3a6819
- Move contents of builtins/* to stdlib/*. This simplifies finding stubs.
3a6819
- Remove outdated things from README.
3a6819
- Make deque inherit from MutableMapping (with difficulty).
3a6819
3a6819
* Mon Jan 11 2016 David Shea <dshea@redhat.com> - 0.1-0.20160111git
3a6819
- Fix types for timetuple and utctimetuple
3a6819
- Fix Python 3 six.moves
3a6819
- Have ast.pyi re-export symbols from _ast.pyi.
3a6819
- Unify 2.7 and 3 stubs for functools.
3a6819
- Enhance type information for lru_cache
3a6819
3a6819
* Thu Jan  7 2016 David Shea <dshea@redhat.com> - 0.1-0.20160107git.1
3a6819
- typing: update 2 to match 3 on Sequence and Container
3a6819
- builtins: Reversible is redundant when Sequence is already present
3a6819
- Add __version__ to _ast.pyi.
3a6819
- add Python 2 stubs for ast, tokenize
3a6819
- Improve Python 2 stub for abc; _weakrefset stub.
3a6819
- Update shlex.pyi
3a6819
- Update random.pyi
3a6819
- Add abstractproperty.__new__ so it can be used.
3a6819
- Add object.__new__ so it can be called.
3a6819
- Update 2.7 built-in set to be the same as PY3 set.
3a6819
- Swap max() and min() overloads so max(x, y) and min(x, y) work as expected.
3a6819
- Improve 2.7 stub for tempfile.
3a6819
- Simplify SystemRandom now it subclasses Random, for 2.7 and 3.
3a6819
- Add object.__setattr__ for 2.7.
3a6819
- Simplify PY3 len() spec, no Union with tuple needed.
3a6819
- Some updates now typing.Container is defined.
3a6819
- Add cStringIO, cPickle to six.moves. Add six.moves for PY3.
3a6819
3a6819
* Fri Dec 18 2015 David Shea <dshea@redhat.com> - 0.1-0.20151217git.1
3a6819
- Rebuild with the correct prefix in the source archive
3a6819
3a6819
* Fri Dec 18 2015 David Shea <dshea@redhat.com> - 0.1-0.20151217git
3a6819
- Share operator stubs in 2and3
3a6819
- Make attrgetter, itemgetter and methodcaller in operator usable
3a6819
3a6819
* Tue Dec 15 2015 David Shea <dshea@redhat.com> - 0.1-0.20151205git
3a6819
- Initial package